package com.ziyun.erp.modules.material.dao;

import com.ziyun.erp.modules.material.entity.ErpStockEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * 紫云仓库表
 * 
 * @author guizhao
 * @email ...
 * @date 2018-08-13 14:27:45
 */
public interface ErpStockDao extends BaseMapper<ErpStockEntity> {

    void updateByMap(@Param("map") Map<String, Object> map, @Param("stockId") Integer stockId);

    @Select("select stock_id from erp_stock where institution = #{sellerId} and type = 1")
    Integer getStockId(Integer sellerId);



}
